﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="Scripts/jquery-2.1.3.js"></script>
</head>
<body>


    <script>
        var i = 1;

        function callback() {
            i++;
            alert("i:" + i);
        }


        $(document).ready(function () {
            alert("Start");

            window.setInterval(callback, 2000);
        });
    </script>
</body>
</html>
